package com.walter;

import cn.hutool.core.lang.Dict;
import com.walter.util.Kv;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author ：ch
 * @date ：Created in 2021/5/25
 * @description：
 * @modified By：
 * @version: 1.0
 */
@SpringBootApplication
@Slf4j
@MapperScan({"com.walter.mapper", "com.walter.*.mapper"})
public class Application {
    public static Kv secondLevelDictMap = new Kv();//二级字典(code,name)Map

    public static Map<String, List<Dict>> secondLevelDictByFirst = Kv.create();//(一级字典code,下属二级字典列表)Map

    public static Date appStartTime;

    public static void main(String... args){
        SpringApplication.run(Application.class, args);
        appStartTime = new Date();
        log.info("Application started successfully！");
    }
}
